#pragma once
#include <stdio.h>
#include <stdlib.h>
#include "glotech_headers.h"
#include "model.h"
#include "view.h"

typedef struct node NODE;
typedef struct controller CONTROLLER;
unsigned int calculate_delay(float multiplier);
/* ------------------------------------------------------------------------------------ */
/* Fonction Name: cont_init									     */
/* Description : Initialises the controller module									      */
/* Input: None																		  */
/* Output: returns SUCCESS or FAILLURE								  */
/* Coded by: Calvin Ference															     */
/* Reviewed by: Calvin Ference							  */	      
/* Revision date: 2013-06-21														    */
/* Revision: 1																		  */
/* ------------------------------------------------------------------------------------ */
CONTROLLER * init_controller(void);

/* ------------------------------------------------------------------------------------ */
/* Fonction Name: cont_read_driver							      */
/* Description : Reads data from input driver										   */
/* Input: None																		  */
/* Output: returns SUCCESS or FAILLURE								  */
/* Coded by: Calvin Ference															     */
/* Reviewed by: Calvin Ference							  */	      
/* Revision date: 2013-06-21														    */
/* Revision: 1																		  */
/* ------------------------------------------------------------------------------------ */

//NODE * cont_read_driver(void);
int cont_set_driver(const int driver);
int cont_init_clock(void);
int cont_init_probe(void);
int cont_destroy();
int cont_play_simulation(void);
int cont_compare_traces(void);


double zone_de_confort_position(void);